home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / indent 1.8 / Makefile < prev    next >
Encoding:
Makefile  |  1994-01-19  |  1.6 KB  |  78 lines  |  [TEXT/MPS ]

  1. # File:        Makefile
  2. # Target:    Indent
  3. # Franklin Chen
  4. # Wed, Jan 19, 1994
  5.  
  6. C = gC
  7. COptions = ∂
  8.     -mc68020 ∂
  9.     -warnings full ∂
  10.     -opt full ∂
  11.     -fomit-frame-pointer ∂
  12.     -fstrength-reduce
  13.  
  14. # C compiler -D options.
  15. DEFS = ∂
  16.     -d MPW ∂
  17.     -d USG ∂
  18. #    -d HAVE_UNISTD_H ∂
  19.     -d DIRENT ∂
  20. #    -d VOID_CLOSEDIR
  21.  
  22. LOptions = -d -c 'MPS ' -t MPST
  23.  
  24. LIBS = ∂
  25.     "{CLibraries}"GUSI.o ∂
  26.     "{CLibraries}"StdClib.o ∂
  27.     "{Libraries}"Stubs.o ∂
  28.     "{Libraries}"Runtime.o ∂
  29.     "{Libraries}"Interface.o ∂
  30.     "{Libraries}"ToolLibs.o
  31.  
  32. #### End of system configuration section. ####
  33.  
  34. SRC =      indent.c io.c lexi.c parse.c pr_comment.c args.c globs.c ∂
  35.       backup.c memcpy.c
  36. OBJ =      indent.c.o io.c.o lexi.c.o parse.c.o pr_comment.c.o args.c.o globs.c.o ∂
  37.       backup.c.o
  38. HEADERS = indent.h sys.h version.h backup.h
  39.  
  40. # Make the program and documentation
  41. #
  42. all ƒ Indent
  43.  
  44. Indent ƒƒ {OBJ}
  45.     Link {LOptions} {OBJ} {LIBS} ∂
  46.         -sg Main=indent,args,lexi,parse,globs,io,backup,pr_comment ∂
  47.         -o Indent
  48. Indent ƒƒ Indent.r
  49.     Rez "{RIncludes}"Cmdo.r Indent.r -a -o Indent
  50.  
  51. .c.o    ƒ    .c
  52.     {C} {COptions} {DEFS} -s {default} {depDir}{default}.c -o {targDir}{default}.c.o 
  53.  
  54.  
  55. backup.c.o ƒ backup.c backup.h sys.h
  56. globs.c.o ƒ globs.c sys.h
  57.  
  58. indent.c.o ƒ indent.c indent.h sys.h
  59. args.c.o ƒ args.c version.h indent.h sys.h
  60. io.c.o ƒ io.c indent.h sys.h
  61. lexi.c.o ƒ lexi.c indent.h sys.h
  62. parse.c.o ƒ parse.c indent.h sys.h
  63. pr_comment.c.o ƒ pr_comment.c indent.h sys.h
  64. memcpy.c.o ƒ memcpy.c indent.h sys.h
  65.  
  66.  
  67. # Installation of indent
  68. #
  69. install ƒ Indent install_already_built
  70.  
  71. install_already_built ƒ
  72.     Duplicate -y Indent "{MPW}"Tools:Indent
  73.     Duplicate -y Indent.Help "{MPW}"
  74.     Duplicate -y UserStartup•Indent "{MPW}"UserStartup•Indent
  75.  
  76. clean ƒ
  77.     Delete -i ≈.c.o ≈.makeout
  78.